package com.gxa.myshiro.dao;

import com.gxa.myshiro.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program:
 * @description:
 * @author: Allen
 * @create: 2019/7/29 18:55
 **/
@Mapper
public interface UserMapper {

    /**
     * 查询所有
     * @return
     */
    List<User> findAll();

    /**
     * 通过用户名字查询用户信息
     * @param userName
     * @return
     */
    User findByUserName(@Param("userName") String userName);
}
